﻿//<TunynetCopyright>
//--------------------------------------------------------------
//<copyright>青岛拓宇网络科技有限公司 2005-2008</copyright>
//<version>V0.5</verion>
//<createdate>3/24/2008 2:39:22 PM</createdate>
//<author>xier</author>
//<email>xier@tunynet.com</email>
//<log date="3/24/2008 2:39:22 PM">创建</log>
//--------------------------------------------------------------
//</TunynetCopyright>

using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;

namespace ChinaCustoms.Qingdao.Workflow.Activities.Chooser
{
    /// <summary>
    /// 自定义的树节点
    /// </summary>
    public class TNTreeNode : TreeNode
    {
        private string id = Guid.Empty.ToString();
        /// <summary>
        /// 部门的ID
        /// </summary>
        public string ID
        {
            get { return id; }
            set { id = value; }
        }

        private bool isAddedChildren = false;
        /// <summary>
        /// 是否已经给这个节点添加过 子节点
        /// </summary>
        public bool IsAddedChildren
        {
            get { return isAddedChildren; }
            set { isAddedChildren = value; }
        }

        private TNTreeNodeType nodeType= TNTreeNodeType.Organization;
        /// <summary>
        /// 节点的类型
        /// </summary>
        public TNTreeNodeType NodeType
        {
            get { return nodeType; }
            set { nodeType = value; }
        }
	
    }

    /// <summary>
    /// 节点的类型
    /// </summary>
    public enum TNTreeNodeType
    { 
        Organization=0,
        User=1
    }
}
